package org.jeecg.modules.demo.hd.service;

import org.jeecg.modules.demo.hd.entity.AppUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.hd.vo.user.authenticationVo;
import org.jeecg.modules.demo.hd.vo.user.registerUserVo;

/**
 * @Description: app_user
 * @Author: jeecg-boot
 * @Date: 2025-01-19
 * @Version: V1.0
 */
public interface IAppUserService extends IService<AppUser> {


    /**
     * 用户注册
     *
     * @param vo
     * @return
     */
    boolean addUser(registerUserVo vo);


    /**
     * 验证手机号是否存在
     *
     * @param phone
     * @return
     */
    boolean checkPhone(String phone);

    /**
     * 用户实名认证
     * @param vo
     * @return
     */
    boolean authentication(authenticationVo vo);

    /**
     * 获取用户的实名认证状态
     * @param userId
     * @return
     */
    String getAuthentication(Long userId);
}
